package com.hq.service;

import com.hq.dao.OrderDAO;
import com.hq.pojo.Detailed;
import com.hq.pojo.Order;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderDAO orderDAO;
    @Override
    public int addDetail(Detailed detailed) {
        return orderDAO.addDetail(detailed);
    }

    @Override
    public int addOrder(String s) {
        return orderDAO.addOrder(s);
    }

    @Override
    public List detailedList(String snowId) {
        return orderDAO.detailedList(snowId);
    }

    @Override
    public int add(Order order) {
        return orderDAO.add(order);
    }

    @Override
    public List  list(Map map) {
        return orderDAO.list(map);
    }
}
